#if defined(OCL_KHR_FP64)
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#endif


__kernel void test( __global Real *results, int num )
{

		Real4 a = (Real4)(1,1,1,1);
		Real4 b = (Real4)(2,2,2,2);
		
		for( int i=0; i < num; ++i )
		{
			results[i] = -1;
		}
		results[0] = dot(a,a);
		results[1] = length(a);
		results[2] = distance(a,b);
		
		
}